# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=aspell-en
pkgver=2018.04.16
pkgrel=1
pkgdesc="English dictionary for aspell"
arch=('x86_64')
url="http://aspell.net/"
license=('custom')
depends=('aspell')
source=("ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-$pkgver-0.tar.bz2")
sha512sums=('70447f5f11a6a2d96e58376ac06e78add59e4eb237ca40ed0752f481dabe1a6e9e227fd20ba95a5612de1bb4357cd65760a31c94efe66f8499b9ed031e9846c2')

build() {
  cd "$srcdir/aspell6-en-$pkgver-0"
  ./configure
  make
}

package() {
  cd "$srcdir/aspell6-en-$pkgver-0"
  make DESTDIR="$pkgdir" install

  install -D -m644 Copyright "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
